package com.hph.demo.test01;

import java.lang.reflect.InvocationTargetException;

/**
 * @author hph
 */
public class ClassLoaderMain {

    public static void main(String[] args) throws ClassNotFoundException, NoSuchMethodException, IllegalAccessException, InvocationTargetException, InstantiationException {

        Class<?> aClass = new ClassLoaderDemo().loadClass("com.hph.demo.test01.User");
        System.out.println(aClass.getClassLoader().getClass().toString());
        System.out.println(aClass.getConstructor().newInstance());
    }
}
